
package com.abcijkxyz.service.stsm;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.abcijkxyz.domain.stsm.Variety;
import com.abcijkxyz.repository.stsm.VarietyRepository;

@Service
public class VarietyService {

	@Autowired
	private VarietyRepository varietyRepository;

	public VarietyService() {
		super();
	}

	public List<Variety> findAll() {
		return this.varietyRepository.findAll();
	}

	public Variety findById(final Integer id) {
		return this.varietyRepository.findById(id);
	}

}
